package pojo;

import java.sql.Date;

public class Staff {
    private String _staffNo;
    private String _trueName;
    private String _sex;
    private Date _birthDate;
    private String _ID;
    private String _password;
    private String _teleNum;
    private double _salary;

    public Staff() {
        _staffNo = "";
        _trueName = "";
        _sex = "";
        _birthDate = null;
        _ID = "";
        _password = "";
        _teleNum = "";
        _salary = 0;
    }

    public Staff(String staffNo,
                 String trueName,
                 String sex,
                 Date birthDate,
                 String ID,
                 String password,
                 String teleNum,
                 double salary) {
        this._staffNo = staffNo;
        this._trueName = trueName;
        this._sex = sex;
        this._birthDate = birthDate;
        this._ID = ID;
        this._password = password;
        this._teleNum = teleNum;
        this._salary = salary;
    }

    @Override
    public String toString() {
        return "Staff{" +
                "_staffNo='" + _staffNo + '\'' +
                ", _trueName='" + _trueName + '\'' +
                ", _sex='" + _sex + '\'' +
                ", _birthDate=" + _birthDate +
                ", _ID='" + _ID + '\'' +
                ", _password='" + _password + '\'' +
                ", _teleNum='" + _teleNum + '\'' +
                ", _salary=" + _salary +
                '}';
    }

    public String get_staffNo() {
        return _staffNo;
    }

    public void set_staffNo(String _staffNo) {
        this._staffNo = _staffNo;
    }

    public String get_trueName() {
        return _trueName;
    }

    public void set_trueName(String _trueName) {
        this._trueName = _trueName;
    }

    public String get_sex() {
        return _sex;
    }

    public void set_sex(String _sex) {
        this._sex = _sex;
    }

    public Date get_birthDate() {
        return _birthDate;
    }

    public void set_birthDate(Date _birthDate) {
        this._birthDate = _birthDate;
    }

    public String get_ID() {
        return _ID;
    }

    public void set_ID(String _ID) {
        this._ID = _ID;
    }

    public String get_password() {
        return _password;
    }

    public void set_password(String _password) {
        this._password = _password;
    }

    public String get_teleNum() {
        return _teleNum;
    }

    public void set_teleNum(String _teleNum) {
        this._teleNum = _teleNum;
    }

    public double get_salary() {
        return _salary;
    }

    public void set_salary(double _salary) {
        this._salary = _salary;
    }
}
